package com.tedu.charging.service.device.dao;

import com.tedu.charging.service.device.pojo.po.GunInfoPO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author zjj
* @description 针对表【charging_gun_info】的数据库操作Mapper
* @createDate 2023-08-30 17:32:54
* @Entity com.tedu.charging.service.device.pojo.po.GunInfo
*/
public interface GunInfoMapper extends BaseMapper<GunInfoPO> {

    @Select("SELECT * FROM charging_gun_info\n" +
            "WHERE id IN \n" +
            "(SELECT id FROM charging_pile_info WHERE station_id=#{stationId})")
    public List<GunInfoPO> selectByStationId(Integer stationId);



}




